Ext.define('Intranet.Desktop.model.UserSetting', {
    extend: 'Ext.data.Model',
    idProperty: 'id',
    fields: [{
            name: 'id',
            type: 'int'
        }, {
            name: 'userID',
            type: 'string'
        }, {
            name: 'username',
            type: 'string'
        }, {
            name: 'first_name',
            type: 'string'
        }, {
            name: 'middle_name',
            type: 'string'
        }, {
            name: 'last_name',
            type: 'string'
        }, {
            name: 'dob',
            type: 'string'
        }, {
            name: 'email',
            type: 'string'
        }, {
            name: 'phone',
            type: 'string'
        }, {
            name: 'avatar',
            type: 'string'
        }],
    proxy: {
        type: 'localstorage',
        id: 'user-settings'
    }
});